<?php

namespace services\logic\core;

require_once 'interface_logic.php';
require_once ROOT_LIBRARY_DB . DS . 'PDOWrapper.php';
require_once ROOT_SERVICES_MODEL .DS. 'oms.php';

use services\models as models;


class stock_check implements interface_logic {

    private $_oms;
    
    public function __construct() {
        $this->_oms = new models\oms();
    }

    public function get_time() {
        $result = $this->_oms->get_stock(0);
        return (int)$result["resutl"];
    }

}

?>
